package com.hl.card.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 社区奖励记录
 * </p>
 *
 * @author huangpu
 * @since 2018-10-19
 */
@TableName("zone_user_award")
public class ZoneUserAward extends Model<ZoneUserAward> {
    private static final long serialVersionUID = 1L;
    @TableId(value="id", type= IdType.AUTO)
    private Long id;
    /**
     * 一级
     */
    private String communityAdmin;
    /**
     * 二级
     */
    private String recommender;
    /**
     * 注册人
     */
    private String userId;
    /**
     * 奖励金额
     */
    private Integer amount;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改日期
     */
    @TableField("modify_time")
    private String modifyTime;
    /**
     * 最终执行结果 0,失败, 1成功
     */
    @TableField("award_result")
    private Integer awardResult;
    /**
     * 实际到达数
     */
    @TableField("award_arrive")
    private Double awardArrive;
    @TableField("communityAdmin_award")
    private Integer communityAdminAward;
    @TableField("recommender_award")
    private Integer recommenderAward;
    @TableField("userId_award")
    private Integer userIdAward;
    /**
     * 奖励订单号
     */
    private String orderid;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCommunityAdmin() {
        return communityAdmin;
    }

    public void setCommunityAdmin(String communityAdmin) {
        this.communityAdmin = communityAdmin;
    }

    public String getRecommender() {
        return recommender;
    }

    public void setRecommender(String recommender) {
        this.recommender = recommender;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getAwardResult() {
        return awardResult;
    }

    public void setAwardResult(Integer awardResult) {
        this.awardResult = awardResult;
    }

    public Double getAwardArrive() {
        return awardArrive;
    }

    public void setAwardArrive(Double awardArrive) {
        this.awardArrive = awardArrive;
    }

    public Integer getCommunityAdminAward() {
        return communityAdminAward;
    }

    public void setCommunityAdminAward(Integer communityAdminAward) {
        this.communityAdminAward = communityAdminAward;
    }

    public Integer getRecommenderAward() {
        return recommenderAward;
    }

    public void setRecommenderAward(Integer recommenderAward) {
        this.recommenderAward = recommenderAward;
    }

    public Integer getUserIdAward() {
        return userIdAward;
    }

    public void setUserIdAward(Integer userIdAward) {
        this.userIdAward = userIdAward;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ZoneUserAward{" +
                "id=" + id +
                ", communityAdmin=" + communityAdmin +
                ", recommender=" + recommender +
                ", userId=" + userId +
                ", amount=" + amount +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", awardResult=" + awardResult +
                ", awardArrive=" + awardArrive +
                ", communityAdminAward=" + communityAdminAward +
                ", recommenderAward=" + recommenderAward +
                ", userIdAward=" + userIdAward +
                ", orderid=" + orderid +
                "}";
    }
}
